<!DOCTYPE html>
<style>
  body a {
    position: absolute;
    height: 100px;
    width: 100px;
    border: 1px solid black;
  }

  #e1 {
    left: 10px;
    top: 210px;
  }

  #e2 {
    left: 60px;
    top: 330px;
  }

  #e3 {
    left: 60px;
    top: 450px;
    width: 150px;
  }
</style>

<p id="description">This test ensures that e2 is NOT right of e1 and e3 is NOT right of e2.</p>
<div id="elements">
  <a id="e1" href="#e1">Element 1</a>
  <a id="e2" href="#e2">Element 2</a>
  <a id="e3" href="#e3">Element 3</a>
</div>

<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="resources/snav-testharness.js"></script>
<script type="application/javascript">
  var resultMap = [
    ["Right", "e1"],
    ["Down", "e2"],
    ["Right", "e2"],
    ["Down", "e3"],
    ["Left", "e3"],
    ["Up", "e2"],
    ["Left", "e2"],
    ["Up", "e1"]
  ];

  // starting the test itself: get to a known place.
  document.getElementById("e1").focus();
  snav.assertFocusMoves(resultMap);
</script>
